#How to run Stata on Farmshare
#First step: download, install, and run an X-Windows compatible SSH client. For Windows,
#that would be MobaXterm, which you may find here:
# https://mobaxterm.mobatek.net/download-home-edition.html
# See this page for links to other options:
# https://uit.stanford.edu/service/sharedcomputing/moreX
# and see this page for background on how to use statistical software on farmshare:
# https://ssds.stanford.edu/software-resources/getting-started-guides-documents
# With your X-Windows enabled SSH client, log in to rice.stanford.edu
# Reminder: You will have to put your dataset and your logs in your AFS space, because that is where your SSH client will be able to find them.
mrosenfe@rice.stanford.edu's password:
Further authentication required
Using keyboard-interactive authentication.
Duo two-factor login for mrosenfe
Enter a passcode or select one of the following options:
1. Duo Push to XXX-XXX-1892
2. Phone call to XXX-XXX-1892
3. SMS passcodes to XXX-XXX-1892
Passcode or option (1-3): 1
┌────────────────────────────────────────────────────────────────────┐
│ • MobaXterm 11.1 • │
│ (SSH client, X-server and networking tools) │
│ │
│ → SSH session to mrosenfe@rice12.stanford.edu │
│ • SSH compression : v │
│ • SSH-browser : v │
│ • X11-forwarding : v (remote display is forwarded through SSH) │
│ • DISPLAY : v (automatically set on remote server) │
│ │
│ → For more info, ctrl+click on help or visit our website │
└────────────────────────────────────────────────────────────────────┘
Success. Logging you in...
Welcome to Ubuntu 16.04.7 LTS (GNU/Linux 4.15.0-142-generic x86_64)
--------------------------------------------------------------------------------
--= Stanford Research Computing Center =--
'||''''| .|'''.|'||
|| . .... ... .... .. .. ||.. ' || .. .... ... .. .... 2
||''|'' .|| ||' ''|| || || ''|||. ||' || '' .|| ||' ''.|...||
|| .|' || || || || || . '|||| || .|' || || ||
.||. '|..'|'.||. .|| || ||.|'....|'.||. ||.'|..'|'.||. '|...'
https://srcc.stanford.edu/farmshare2/
--------------------------------------------------------------------------------
For use in coursework and unsponsored research and subject
to Stanford policies on acceptable use.
https://farmshare.stanford.edu/index.php/Policy
--------------------------------------------------------------------------------
For Support
Visit the FarmShare wiki: https://farmshare.stanford.edu/
Join the community by subscribing to farmshare-discuss@lists.stanford.edu:
https://mailman.stanford.edu/mailman/listinfo/farmshare-discuss/
Contact SRCC staff with questions, comments, concerns, or error reports:
srcc-support@stanford.edu
--------------------------------------------------------------------------------
You are logged into rice12, a login node intended for job submission and general
purpose interactive use. For compute- and/or memory-intensive work please
submit a job.
Last login: Sun Jun 30 20:04:51 2019 from 24.4.233.213
Tue Aug 31 13:42:16 PDT 2021
/home/mrosenfe
#First, I navigate up the directory to root:
mrosenfe@rice12 /home/mrosenfe
> cd /
#Then I list what is there
mrosenfe@rice12 /
> ls
afs farmshare lib nonexistent sbin sys vmlinuz
bin home lib64 opt scratch tests.sh vmlinuz.old
boot home.root lost+found proc service tmp
dev initrd.img media root snap usr
etc initrd.img.old mnt run srv var
#farmshare is what we want
mrosenfe@rice12 /
> cd farmshare
mrosenfe@rice12 /farmshare
> ls
home scratch software software-dev software-prod user_data
mrosenfe@rice12 /farmshare
> cd software
mrosenfe@rice12 /farmshare/software-prod
> ls
examples free modules non-free source
mrosenfe@rice12 /farmshare/software-prod
> cd non-free
#For the purposes of this class stata-se is all you need, stata-mp runs complex
# models a little faster but that won’t be relevant for us.
mrosenfe@rice12 /farmshare/software-prod/non-free
> ls
AMPL-2015 gaussian MATLAB-R2017a MATLAB-R2020a SAS9.4 tomlab
ANSYS gurobi MATLAB-R2017b MATLAB-R2020b schrodinger
ANSYS17.1 intel MATLAB-R2018a nag sicstus
ANSYS18.2 maple MATLAB-R2018b pgi stata-mp
cplex mathematica MATLAB-R2019a pymol stata-se
GAMS MATLAB-R2016b MATLAB-R2019b rosetta stattransfer
mrosenfe@rice12 /farmshare/software-prod/non-free
> cd stata-se
# Farmshare has all versions of Stata from ver 14 to ver 17. Any of them should work
# the same way for our purposes. Pick one version and use it consistently.
# I will be using ver 16, but the same commands will work on any version.
mrosenfe@rice12 /farmshare/software-prod/non-free/stata-se
> ls
14.2 15 16 17
mrosenfe@rice12 /farmshare/software-prod/non-free/stata-se
> cd 16
mrosenfe@rice12 /farmshare/software-prod/non-free/stata-se/16
> ls
ado installed.160 stata16.png stata_pdf xstata
auto.dta isstata.160 stata_br stata-se xstata-mp
docs setrwxp stata.lic stinit xstata-se
inst2 stata stata-mp utilities
#The command below is the one that runs stata-se in the xwindows client.
#note the “./x” before the “stata-se”
mrosenfe@rice12 /farmshare/software-prod/non-free/stata-se/16
> ./xstata-se
#And you should see the xwindows version of stata pop up.